import Vue from 'vue';

import VueRouter from 'vue-router';
Vue.use(VueRouter);
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.options.root = "http://www.liulongbin.top:3005/";
Vue.http.options.emulateJSON = true;

// import { Header,Swipe, SwipeItem,Button } from 'mint-ui';
// Vue.component(Header.name, Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
import MintUI from 'mint-ui'
Vue.use(MintUI)
import 'mint-ui/lib/style.css'
import VuePreview from 'vue2-preview';
Vue.use(VuePreview)
// Vue.use(VuePreview, {
//   mainClass: 'pswp--minimal--dark',
//   barsSize: {top: 0, bottom: 0},
//   captionEl: false,
//   fullscreenEl: false,
//   shareEl: false,
//   bgOpacity: 0.85,
//   tapToClose: true,
//   tapToToggleControls: false
// })

import moment from 'moment';
Vue.filter('dateformat', function (dataStr,pattern="YYYY-MM-DD HH-mm-ss") {
  return moment(dataStr).format(pattern)
})


import './lib/mui/css/mui.css';
import './lib/mui/css/icons-extra.css';


import app from './App.vue'
import router from './router.js'

new Vue({
  el: '#app',
  data: {},
  methods:{
    
  },
  render: c => c(app),
  router
})